<template>
  <basic-container>
    <avue-crud
        v-bind="bindVal"
               v-on="onEvent"
               v-model:page="page"
               v-model="form">
    </avue-crud>
  </basic-container>
</template>

<script>
export default window.$simpleCrudCommon({
  data() {
    return {};
  },
  created() {

  },
  methods: {
    listAfter(data) {
      console.log(data)
    },

    addBefore(form) {

      alert(JSON.stringify(form))
      console.log("addBefore")
    },
    addAfter(data) {

      console.log(data)
      alert(JSON.stringify(data))
    },
    updateBefore(form) {
      alert(JSON.stringify(form))
    }
  }


}, {
  name: 'simpleCrud/index',
  apiPrefix: '/simplecrud',
})
</script>

<style lang="scss" scoped>
</style>
